package object2.package2;

public class Derived extends Base{
    int b;
    int d;

    public Derived() {
        super(10, 20);
        this.b = 30;
        this.d = 40;
        System.out.println("derived：构造代码块");
    }

    public Derived(int a, int b, int b1, int d) {
        super(a, b);
        this.b = b1;
        this.d = d;
    }
    {
        System.out.println("derived：实例代码块");
    }
    static{
        System.out.println("derived：静态代码块");
    }

    public void derivedMethodA(){
        System.out.println("super.b:" + super.b);
        System.out.println("this.b:" + this.b);
        System.out.println("derivedMethodA");
    }
    public void derivedMethodB(){
        System.out.println("derivedMethodB");
    }
    public static void derivedMethodC(){
        System.out.println("static_derivedMethodC");
    }
}
